﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>修改菜单</title>
</head>
<body>
    <div style="padding:15px;overflow:hidden">
        <form id="MenuEditForm" method="post" action="">
            <table class="tableForm" width="100%">
                <tr>
                    <th>菜单名称：</th>
                    <td>
                        <input type="hidden" name="hidid" id="hidid" />
                        <input type="hidden" name="hidoriginalName" id="hidoriginalName" />
                        <input type="text" name="txtMenuName" id="txtMenuName" class="easyui-validatebox textbox"
                               data-options="required:true,validType:'length[2,20]'" style="width:170px;height:22px;" />
                    </td>
                </tr>

                <tr>
                    <th>父节点：</th>
                    <td>
                        <input class="easyui-combotree" id="treeMenuParentId" name="treeMenuParentId"
                               data-options="url:'/Menu/GetAllMenuTree',lines:true" style="width:170px;height:22px;" />
                        <img src="../Content/themes/icon/edit-clear.png" style="cursor:pointer;vertical-align:middle;"
                             alt="清空父节点" title="清空父节点" onclick="$('#treeMenuParentId').combotree('clear');" />
                    </td>
                </tr>


                <tr>
                    <th>标识码：</th>
                    <td>
                        <input type="text" name="txtMenuCode" id="txtMenuCode" class="easyui-validatebox textbox"
                               data-options="required:false,valiType:'length[2,40]'" style="width:170px;height:22px;" />
                    </td>
                </tr>
                <tr>
                    <th>链接地址：</th>
                    <td>
                        <input type="text" name="txtMenuLinkAddress" id="txtMenuLinkAddress" class="easyui-validatebox textbox"
                               data-options="required:false,valiType:'length[2,40]'" style="width:170px;height:22px;" />
                    </td>
                </tr>
                <tr>
                    <th>图标：</th>
                    <td>
                        <select id="comboxMenuIconTree" name="comboxMenuIconTree" class="easyui-combotree"
                                style="width: 170px; height: 22px;" data-options="url:'/Icons/GetAllIconsTree',
                                    editable:false,valueField:'id',textField:'text',multiple:false">
                        </select>
                        <img src="../Content/themes/icon/edit-clear.png" style="cursor:pointer;vertical-align:middle;"
                             alt="清空图标" title="清空图标" onclick="$('#comboxMenuIconTree').combotree('clear');" />
                    </td>
                </tr>


                <tr>
                    <th>排序：</th>
                    <td>
                        <input type="number" name="txtMenuSort" id="txtMenuSort" value="1" class="easyui-numberspinner"
                               data-options="min:1,max:100,editable:false" autocomplete="off" style="width:70px;height:22px;" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
